package models

import "time"

type Game struct {
	ID         int       `gorm:"primaryKey;autoIncrement;comment:编号"`
	Enable     int       `gorm:"not null;default:0;comment:启用"`
	Ilk        string    `gorm:"type:varchar(20);not null;default:gold;comment:类型"`
	Name       string    `gorm:"type:varchar(50);not null;comment:名称"`
	URL        string    `gorm:"type:varchar(100);not null;comment:网址"`
	Src        string    `gorm:"type:varchar(50);unique;not null;comment:来源"`
	Dest       string    `gorm:"type:varchar(50);comment:目标"`
	CreatedAt  time.Time `gorm:"column:created_at"`
	UpdatedAt  time.Time `gorm:"column:updated_at"`
	CreateTime int64     `gorm:"column:create_time"`
	UpdateTime int64     `gorm:"column:update_time"`
}

func (s *Game) TableName() string {
	return "yf_g2g_game"
}
